/**
 * 生成“附件”元素的 HTML
 * https://www.wangeditor.com/v5/development.html#%E6%8A%8A%E6%96%B0%E5%85%83%E7%B4%A0%E8%BD%AC%E6%8D%A2%E4%B8%BA-html
 */
function elemHtml(elem, childrenHtml) {
  const { materialType = '', videoId = '', videoName = '' } = elem
  return `<div data-w-e-type="vod" data-w-e-is-void data-w-e-is-void data-w-e-is-inline data-material-type="${materialType}" data-video-id="${videoId}" data-video-name="${videoName}"></div>`
}

// 配置
const conf = {
  type: 'vod',
  elemToHtml: elemHtml
}

export default conf
